<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
		<title>歪风阅读</title>
		<link rel="shortcut icon" th:href="@{/picture/favicon.ico}"/>
		<link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.min.css}"/>
		<link rel="stylesheet" type="text/css" th:href="@{/css/auth/auth-base.css}"/>
		<link th:href="@{/css/auth/authworkUI.css}" rel="stylesheet">

		<script th:src="@{/js/jquery-3.4.1.min.js}" type="text/javascript" charset="utf-8"></script>
		<script th:src="@{/js/bootstrap.min.js}" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="container">
		<div class="row clearfix">
				<div class="col-md-12 column" style="height: fit-content;">
						<div class="row clearfix">
								<div class="col-md-12 column">
										<nav class="navbar navbar-default navbar-static-top navbar-inverse" role="navigation">
												<div class="navbar-header">
														<button type="button" class="navbar-toggle"
														        data-toggle="collapse"
														        data-target="#bs-example-navbar-collapse-1">
																<span class="sr-only">Toggle navigation</span>
																<span class="icon-bar"></span>
																<span class="icon-bar"></span>
																<span class="icon-bar"></span>
														</button>
														<a class="navbar-brand" th:href="@{/index}">歪风阅读</a>
												</div>

												<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
														<ul class="nav navbar-nav">
																<li class="active">
																		<a th:href="@{/auth/authorUI}">首页</a>
																</li>
																<li>
																		<a href="#">Link</a>
																</li>
														</ul>
														<form class="navbar-form navbar-left" style="margin-left: 200px"
														      role="search">
																<div class="form-group">
																		<input type="text" class="form-control"
																		       placeholder="搜索你的作品"/>
																</div>
																<button type="search" class="btn btn-default">搜索
																</button>
														</form>
														<ul class="nav navbar-nav navbar-right"
														    style="margin-right: 30px;">

																<li th:if="${session.user_auth!=null}">
																		<img th:if="${session.user_auth.headImage==null}"
																		     th:src="@{/picture/default_user.png}"
																		     alt="404" class="headimag">
																		<img th:if="${session.user_auth.headImage!=null}"
																		     class="headimage"
																		     th:src="@{'/auth-photo/'+${session.user_auth.nickName}+'/'+${session.user_auth.headImage}}"
																		     alt="404">
																</li>
																<li th:if="${session.user_auth!=null}">
																		<a href="">[[${session.user_auth.nickName}]]</a>
																</li>
																<li th:if="${session.user_auth!=null}">
																		<a th:href="@{/loginAndRegist/loginout}">注销</a>
																</li>

																<li th:if="${session.user_auth==null}">
																		<a th:href="@{/loginAndRegist/login}">登录</a>
																</li>
																<li th:if="${session.user_auth==null}">
																		<a th:href="@{/loginAndRegist/regist}">成为作家</a>
																</li>
														</ul>
												</div>

										</nav>
								</div>
						</div>
						<div class="row clearfix" style="background: #00BFFF">
								<div class="col-md-2 column">
										<div class="list-group" id="left-menu">
												<span class="list-group-item active">作品管理</span>
												<div class="list-group-item" >
														<h4 class="list-group-item-heading ">
																<a th:href="@{/auth/worklist}" target="content_frame">所有作品</a>
														</h4>
												</div>
												<div class="list-group-item">
														<h4 class="list-group-item-heading">
																<a th:href="@{/auth/workupdateUI}" target="content_frame">修改作品信息</a>
														</h4>
												</div>
												<div class="list-group-item">
														<h4 class="list-group-item-heading">
																<a th:href="@{/auth/addUI}" target="content_frame">新建&&编辑</a>
														</h4>
												</div>
										</div>
								</div>
								<div class="col-md-10 column">
										<iframe name="content_frame" th:src="@{/auth/worklist}" id="frame" scrolling="auto"></iframe>
								</div>
						</div>
				</div>
		</div>
</div>
</body>
</html>